﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001367 RID: 4967
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeOfferingRewardScRsp : IMessage<TakeOfferingRewardScRsp>, IMessage, IEquatable<TakeOfferingRewardScRsp>, IDeepCloneable<TakeOfferingRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003EA6 RID: 16038
		// (get) Token: 0x0600DE65 RID: 56933 RVA: 0x002532E3 File Offset: 0x002514E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeOfferingRewardScRsp> Parser
		{
			get
			{
				return TakeOfferingRewardScRsp._parser;
			}
		}

		// Token: 0x17003EA7 RID: 16039
		// (get) Token: 0x0600DE66 RID: 56934 RVA: 0x002532EA File Offset: 0x002514EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeOfferingRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003EA8 RID: 16040
		// (get) Token: 0x0600DE67 RID: 56935 RVA: 0x002532FC File Offset: 0x002514FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeOfferingRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DE68 RID: 56936 RVA: 0x00253303 File Offset: 0x00251503
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOfferingRewardScRsp()
		{
		}

		// Token: 0x0600DE69 RID: 56937 RVA: 0x0025330C File Offset: 0x0025150C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOfferingRewardScRsp(TakeOfferingRewardScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.aKEGHCPLJAC_ = ((other.aKEGHCPLJAC_ != null) ? other.aKEGHCPLJAC_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DE6A RID: 56938 RVA: 0x00253374 File Offset: 0x00251574
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOfferingRewardScRsp Clone()
		{
			return new TakeOfferingRewardScRsp(this);
		}

		// Token: 0x17003EA9 RID: 16041
		// (get) Token: 0x0600DE6B RID: 56939 RVA: 0x0025337C File Offset: 0x0025157C
		// (set) Token: 0x0600DE6C RID: 56940 RVA: 0x00253384 File Offset: 0x00251584
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003EAA RID: 16042
		// (get) Token: 0x0600DE6D RID: 56941 RVA: 0x0025338D File Offset: 0x0025158D
		// (set) Token: 0x0600DE6E RID: 56942 RVA: 0x00253395 File Offset: 0x00251595
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003EAB RID: 16043
		// (get) Token: 0x0600DE6F RID: 56943 RVA: 0x0025339E File Offset: 0x0025159E
		// (set) Token: 0x0600DE70 RID: 56944 RVA: 0x002533A6 File Offset: 0x002515A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OJOBBCKLNFK AKEGHCPLJAC
		{
			get
			{
				return this.aKEGHCPLJAC_;
			}
			set
			{
				this.aKEGHCPLJAC_ = value;
			}
		}

		// Token: 0x0600DE71 RID: 56945 RVA: 0x002533AF File Offset: 0x002515AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeOfferingRewardScRsp);
		}

		// Token: 0x0600DE72 RID: 56946 RVA: 0x002533C0 File Offset: 0x002515C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeOfferingRewardScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.Retcode == other.Retcode && object.Equals(this.AKEGHCPLJAC, other.AKEGHCPLJAC) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DE73 RID: 56947 RVA: 0x00253424 File Offset: 0x00251624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.aKEGHCPLJAC_ != null)
			{
				num ^= this.AKEGHCPLJAC.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DE74 RID: 56948 RVA: 0x0025348F File Offset: 0x0025168F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DE75 RID: 56949 RVA: 0x00253497 File Offset: 0x00251697
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DE76 RID: 56950 RVA: 0x002534A0 File Offset: 0x002516A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.aKEGHCPLJAC_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.AKEGHCPLJAC);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DE77 RID: 56951 RVA: 0x00253518 File Offset: 0x00251718
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.aKEGHCPLJAC_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.AKEGHCPLJAC);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DE78 RID: 56952 RVA: 0x00253588 File Offset: 0x00251788
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeOfferingRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.aKEGHCPLJAC_ != null)
			{
				if (this.aKEGHCPLJAC_ == null)
				{
					this.AKEGHCPLJAC = new OJOBBCKLNFK();
				}
				this.AKEGHCPLJAC.MergeFrom(other.AKEGHCPLJAC);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DE79 RID: 56953 RVA: 0x0025361C File Offset: 0x0025181C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DE7A RID: 56954 RVA: 0x00253628 File Offset: 0x00251828
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 58U)
					{
						if (num != 106U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.reward_ == null)
							{
								this.Reward = new ItemList();
							}
							input.ReadMessage(this.Reward);
						}
					}
					else
					{
						if (this.aKEGHCPLJAC_ == null)
						{
							this.AKEGHCPLJAC = new OJOBBCKLNFK();
						}
						input.ReadMessage(this.AKEGHCPLJAC);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005833 RID: 22579
		private static readonly MessageParser<TakeOfferingRewardScRsp> _parser = new MessageParser<TakeOfferingRewardScRsp>(() => new TakeOfferingRewardScRsp());

		// Token: 0x04005834 RID: 22580
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005835 RID: 22581
		public const int RewardFieldNumber = 13;

		// Token: 0x04005836 RID: 22582
		private ItemList reward_;

		// Token: 0x04005837 RID: 22583
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04005838 RID: 22584
		private uint retcode_;

		// Token: 0x04005839 RID: 22585
		public const int AKEGHCPLJACFieldNumber = 7;

		// Token: 0x0400583A RID: 22586
		private OJOBBCKLNFK aKEGHCPLJAC_;
	}
}
